home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 2 / BBS in a box - Trilogy II.iso / Files / Hyper / G / Get⁄SetCreator 2.3 / Get_SetCreator 2.3 / card_4432.txt < prev    next >
Encoding:
Text File  |  1993-02-06  |  2.9 KB  |  89 lines

  1. -- card: 4432 from stack: in.3
  2. -- bmap block id: 2789
  3. -- flags: 0000
  4. -- background id: 4612
  5. -- name: 
  6.  
  7.  
  8. -- part 3 (button)
  9. -- low flags: 00
  10. -- high flags: A002
  11. -- rect: left=4 top=54 right=76 bottom=104
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: GetCreator
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   answer file "Choose a file to examine:"
  23.   put it into appname
  24.   if appname is "" then exit mouseup
  25.   get getcreator(appname)
  26.   if the number of chars of it = 4 then
  27.     answer "The CREATOR of ‚Äú" & appname & "‚Äù is" && it & "."
  28.   else
  29.     answer it with "Sorry"
  30.   end if
  31. end mouseUp
  32.  
  33.  
  34.  
  35. -- part 4 (button)
  36. -- low flags: 00
  37. -- high flags: A002
  38. -- rect: left=108 top=54 right=76 bottom=208
  39. -- title width / last selected line: 0
  40. -- icon id / first selected line: 0 / 0
  41. -- text alignment: 1
  42. -- font id: 0
  43. -- text size: 12
  44. -- style flags: 0
  45. -- line height: 16
  46. -- part name: SetCreator
  47. ----- HyperTalk script -----
  48. on mouseUp
  49.   answer file "Choose a file to modify:"
  50.   put it into appname
  51.   if appname is "" then exit mouseup
  52.   ask "Change Creator to what?" with getcreator(appname)
  53.   if it = "" then exit mouseup
  54.   setcreator appname,it
  55.   if the result ‚↠"" then answer the result with "Sorry"
  56. end mouseUp
  57.  
  58.  
  59.  
  60. -- part 5 (field)
  61. -- low flags: 05
  62. -- high flags: 2007
  63. -- rect: left=1 top=82 right=309 bottom=511
  64. -- title width / last selected line: 0
  65. -- icon id / first selected line: 0 / 0
  66. -- text alignment: 0
  67. -- font id: 4
  68. -- text size: 9
  69. -- style flags: 0
  70. -- line height: 12
  71. -- part name: 
  72.  
  73.  
  74. -- part contents for card part 5
  75. ----- text -----
  76. GetCreator takes one parameter, the pathname of the file you want to examine, and it returns the four character Creator of the file. SetCreator takes two parameters, the pathname of the file and the four character Creator to use. Click on and/or examine the scripts of the buttons above to see how it works!
  77.  
  78. A small shareware fee (per external) of $5 is requested if you use these externals in any ‚Äúin-house‚Äù, shareware or freeware products. The registration fee (per external) for development and prototyping of a future commercial product is $10. The registration fee (per external) for unlimited commercial use in a SINGLE ‚Äúfor sale‚Äù product is $15. The fee (per external) for unlimited commercial use with MULTIPLE products is $25. These are lifetime registrations.  You are entitled to all future shareware updates without further cost.
  79.  
  80. If you have comments, questions, or suggestions, you can contact me in any of the following ways:
  81.  
  82.      America Online: J5rson                  Internet:  j5rson@aol.com
  83.      CompuServe:     76675,1772              GEnie:     J5rson
  84.      Watermark:      616.698.2310            Telephone: 616.949.0346
  85.  
  86.      U. S. Mail:           Jeff Iverson
  87.                            3841 Whispering Way Dr. SE #101
  88.                            Grand Rapids MI  49546-5849
  89.